package com.cstor.liang.pojo.other;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * Created by Administrator on 2017/9/3.
 */
public class UserLoginVo {

    @NotNull(message = "缺少username")
    @Length(min = 2, max = 50, message = "username长度为2-50")
    private String username;

    @NotNull(message = "缺少password")
    @Length(min = 2, max = 100, message = "password长度为2-100")
    private String password;

    public UserLoginVo() {
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
